Skip to content

Document behavior of -c flag for JPEG-LS#66

Open
malaterre wants to merge 1 commit intothorfdbg:masterfrom
malaterre:spiff-rgb-doc
Open

Document behavior of -c flag for JPEG-LS#66
malaterre wants to merge 1 commit intothorfdbg:masterfrom
malaterre:spiff-rgb-doc

Conversation

@malaterre
Copy link
Contributor

Upon compression an application data marker segment (14) is added to the
JPEG-LS stream.

Upon decompression, even when a SPIFF header is present (with RGB)
space, one must instruct the decompression step to use RGB space
(disable color transformation).

Upon compression an application data marker segment (14) is added to the
JPEG-LS stream.

Upon decompression, even when a SPIFF header is present (with RGB)
space, one must instruct the decompression step to use RGB space
(disable color transformation).
@malaterre
Copy link
Contributor Author

malaterre commented Mar 4, 2022

@ValZapod
A picture is worth a thousand words:

red

Per my understanding of H.5.1 Example of minimum SPIFF file header (ITU-T T.87), I would expect the above to decompress into a perfectly red image ("FF0000" in ppm). However if you use the current jpeg tool without the -c you'll notice the color space transformation is being done.

I could not find reference of this Adobe 14 marker in my copy of the standard, could you please help me here and point me where this is specified ? Thanks in advance.

@thorfdbg
Copy link
Owner

thorfdbg commented Mar 4, 2022 via email

@thorfdbg
Copy link
Owner

thorfdbg commented Mar 6, 2022 via email

@malaterre
Copy link
Contributor Author

Just for later reference some JPEG-LS encoders out-there are using APP8 marker to store color space transformation (HP extensions from original LOCO?). They will not be decoded properly by jpeg command line.

rgb16 app8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants